<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加/修改攻略</title>
<%@ include file="/view/common/tags.jsp"%>
	<link rel="stylesheet" href="${sysManagerV1}/js/kindeditor/themes/default/default.css" type="text/css"/>
    <script type="text/javascript" charset="UTF-8" src="${sysManagerV1}/js/kindeditor/kindeditor-min.js"></script>
	<script type="text/javascript" charset="gbk" src="${sysManagerV1}/js/kindeditor/lang/zh_CN.js"></script>
</head>
<body>
	<div class="well well_p" > 
		<sk:form method="post" cssClass="form-horizontal" action="" id="saveAndUpdateFrom" target="_parent"  enctype="multipart/form-data">
			<input type="hidden" id="rowId" name="rowId" value='<%=request.getParameter("rowId")%>'/>
			<input type="hidden" id="isReCommit" value="0">
			<input type="hidden" id="token" name="token" value="">
			<input type="hidden" id="raiderImg" name="raiderImg" value="">
			<input type="hidden" id="gameId" name="gameId" value="" >
			<input type="hidden" id="gameName" name="gameName" value="">
			<input type="hidden" id="raiderType" name="raiderType" value="">
			<input type="hidden" id="raiderSmallName" name="raiderSmallName" value="">
			<div class="form-group">
				<label class="col-xs-2 text-right">游戏名称:</label>
				<div class="col-xs-3">
					<sk:select cssClass="form-control select" id="gameIdSelect" name="gameIdSelect" value="" requiredInit="true" ajaxURL="${userInfoV1}/baseGame/gameSelect?wm[DEL_FLAG]=1" onchange="TagUtil.fillOptions('gameIdSelect')">
						<option value="">请选择</option>
					</sk:select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2 text-right">攻略类型:</label>
				<div class="col-xs-3">
					<sk:select cssClass="form-control select" id="raiderTypeId" name="raiderTypeId" value="" requiredInit="true" parentCascadedSelect="gameIdSelect" ajaxURL="${strategyV1}/raiderType/raiderTypeSelect?1=1" onchange="changeRaiderType(this.value)">
						<option value="">请选择</option>
					</sk:select>
				</div>
				<label class="col-xs-2 text-right">攻略小类:</label>
				<div class="col-xs-3">
					<sk:select cssClass="form-control select" id="raiderSmallId" name="raiderSmallId" value="">
						<option id="raiderTypeEle" value="0">全部</option>
					</sk:select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2 text-right">攻略标题:</label>
				<div class="col-xs-3">
					<input type="text" class="form-control" name="raiderTitle" id="raiderTitle" value=""  placeholder="请输入攻略标题(最多40个字)">
				</div>
                <label class="col-xs-2 text-right">排序编号:</label>
                <div class="col-xs-3">
                    <input type="text" class="form-control" name="orderByNo" id="orderByNo" value=""  placeholder="请输入排序编号">
                </div>
			</div>
			<div class="form-group" >
				<label class="col-xs-2 text-right">是否热门:</label>
				<div class="col-xs-3">
					<td colspan="2">
						<label><input name="hotFlag" type="radio" checked="checked"  value="1"/>&nbsp;是</label>&nbsp;&nbsp;&nbsp;&nbsp;
						<label><input name="hotFlag" type="radio"  value="0"/>&nbsp;否</label>
					</td>
				</div>
				<label class="col-xs-2 text-right">是否发布:</label>
				<div class="col-xs-3">
					<td colspan="2">
						<label><input name="fbFlag" type="radio" checked="checked"  value="1"/>&nbsp;是</label>&nbsp;&nbsp;&nbsp;&nbsp;
						<label><input name="fbFlag" type="radio"  value="0"/>&nbsp;否</label>
					</td>
				</div>
			</div>
			<div class="form-group" >
				<label class="col-xs-2 text-right">攻略图片:</label>
				<div class="cb_box cbx_img_bg col-xs-9">
					<img id="newmainImgPath" src="" width="160px;" height="118px;" onerror="javascript:this.src='${sysManagerV1}/images/uploadImage/noimage.gif';">
					<div class="mainImgPathBox" style="margin-bottom: -56px;">
						<a href="javascript:;" class="file">选择文件<input id="imgPath" type="file" name="Filedata" onchange="newPic(this,'mainImgPath');"/></a>
					</div>
					<div class="exp_box" style="color:red;">建议尺寸为285*169px(jpg、bmp、png等)，并且小于500KB的图片。</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2 text-right">攻略内容：</label>
				<div class="col-xs-10">
					<textarea id="raiderContent" name="raiderContent" style="width:570px;height:270px;border:#ccc solid 1px;text-indent:3px;padding-top:3px;"/></textarea>
				</div>
			</div>
		</sk:form>
	</div>
</body>
<%@ include file="/view/common/footer.jsp"%>
<script type="text/javascript" src="${sysManagerV1}/view/js/strategy/strategy_add.js"></script>
</html>